package org.centsuse.intention_spring.invention.config.models;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.centsuse.intention_spring.invention.factory.YamlPropertySourceFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 大模型配置类
 */
@Component
@ConfigurationProperties(prefix = "app.models")
@PropertySource(value = "classpath:config/model-config.yml",
        factory = YamlPropertySourceFactory.class)
@Data // 使用 Lombok 生成 getter/setter
@ToString
@NoArgsConstructor
public class ModelConfiguration {

    private Map<String, ModelConfig> modelConfigMap;
}
